﻿namespace _047_ObserverSample;

/// <summary>
/// 具体观察者：湿度显示器
/// </summary>
public class TemperatureDisplay : IObserver
{
    public void Update(float temperature, float humidity, float pressure)
    {
        Console.WriteLine($"温度显示器：当前温度为：{temperature}");
    }
}